QT += gui

TEMPLATE = lib
CONFIG += plugin

CONFIG += c++17

TARGET = pluginA
# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0
# 输出目录
DESTDIR = $$PWD/../plugins/pluginA
# OBJECTS_DIR = $$DESTDIR/.obj/pluginA
# MOC_DIR = $$DESTDIR/.moc/pluginA
# RCC_DIR = $$DESTDIR/.rcc/pluginA

INCLUDEPATH += $$PWD #因为需要加载头文件
INCLUDEPATH += $$PWD/include  #这里放插件依赖的插件

SOURCES += \
    genericplugin.cpp

HEADERS += \
    genericplugin.h

# 插件元数据文件
DISTFILES += pluginA.json

# Default rules for deployment.
unix {
    target.path = $$[QT_INSTALL_PLUGINS]/generic
}
!isEmpty(target.path): INSTALLS += target
